package com.draven.service;

import com.draven.entity.OperationLog;
import com.draven.common.PageQuery;
import com.draven.common.Result;

import java.util.List;

public interface OperationLogService {
    /**
     * 保存操作日志
     */
    void saveLog(OperationLog log);
    
    /**
     * 分页查询操作日志
     */
    Result<?> pageList(PageQuery pageQuery, OperationLog condition);
    
    /**
     * 清理指定天数之前的日志
     */
    int cleanLogs(int days);
} 